import request from '@/utils/request.js'

// 搜索相关接口
// 热搜关键字
export const hotSearch = params => {
  return request({
    method: 'get',
    url: '/search/hot',
    params
  })
}

export const searchResult = params => {
  return request({
    method: 'get',
    url: '/search/hot/detail',
    params
  })
}

// 搜索建议列表

export const searchSuggestion = params => {
  return request({
    method: 'get',
    url: '/search/suggest',
    params
  })
}

export const searchResults = params => {
  return request({
    method: 'get',
    url: '/cloudsearch',
    params
  })
}
